if(ESP_PLATFORM)

file(GLOB_RECURSE SOURCES ./generated/*.c ./generated/images/*.c)

idf_component_register(SRCS ${SOURCES}
                       INCLUDE_DIRS ./generated ./generated/guider_customer_fonts ./generated/guider_fonts ./generated/images ../lvgl/src/lv_font ./custom ../
                       REQUIRES main)

else()
    message(FATAL_ERROR "LVGL LV examples: ESP_PLATFORM is not defined. Try reinstalling ESP-IDF.")
endif()

